package OOP.LEVEL02.EX01;

public class Models {
	public double Area(Triangle objT){
		double p=(objT.getSide1()+objT.getSide2()+objT.getSide3())/2;
		return Math.sqrt(p*(p-objT.getSide1())*(p-objT.getSide2())*(p-objT.getSide3()));
	}
	
	public double Perimeter(Triangle objT){
		return objT.getSide1()+objT.getSide2()+objT.getSide3();
	}
	
	public String toString(Triangle objT){
		return "Triangle: Side1= "+objT.getSide1()+" side2= "+objT.getSide2()+" side3= "+objT.getSide3();
	}
}
